import request from '@/utils/request'

export function addServiceLevel(data) {
  return request({
    url: '/juanbusiness/service-level/add',
    method: 'post',
    data
  })
}

export function findServiceLevel(page,size) {
  return request({
    url: '/juanbusiness/service-level/findPage',
    method: 'get',
    params: {page: page,size: size}
  })
}

  export function detailServiceLevel(id) {
    return request({
      url: '/juanbusiness/service-level/get',
      method: 'get',
      params: {id: id}
    })
  }

export function editServiceLevel(data) {
  return request({
    url: '/juanbusiness/service-level/edit',
    method: 'put',
    data
  })
}

export function delServiceLevel(id) {
  return request({
    url: '/juanbusiness/service-level/del',
    method: 'delete',
    params: {id: id}
  })
}
